package com.cancan.demo.apidebouncing.annotation;
 
import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * @description 加上这个注解可以将参数设置为key
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface RequestLock {

    String prefix();

    long expire() default 0;

    TimeUnit timeUnit();

    String delimiter() default "&";
}